// app.js
import './utils/utils'
import './utils/http'
App({
  globalData: {},
  onLaunch(){
    this.getToken()
  },
  getToken(){
  
    this.token = wx.getStorageSync('token')
    this.refreshToken = wx.getStorageSync('refreshToken')
  },
  setToken(key,token){
    //  console.log(key,token);
     this[key]=token
     console.log(this);
     wx.setStorageSync(key, token)
  }
})
